﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ruandao.MiniFace
{
    public class TextItem : ValueItem
    {
        public string Text { get; private set; }

        public TextItem(Template template, string text)
            : base(template)
        {
            this.Text = text;
        }

        public override object GetValue(TemplateContext templateContext)
        {
            return this.Text;
        }

        public override void Render( TemplateContext templateContext, System.IO.TextWriter writer)
        {
            writer.Write(this.Text);
        }
    }
}
